import layout from '@/layout'
export default {
  path: '/employee',
  name:'employee',
  component: layout,
  children: [{
    path: '',
    name: 'employee',
    component: () => import('@/views/employee'),
    meta: {
      title: '员工',
      icon: 'people'
    }
  },
  {
    path: '/employee/detail/:id?',//?可选链修饰符 表示这个参数可以有也可以没有
    component: () => import('@/views/employee/detail.vue'),
    hidden:true,//控制该路由组件是否显示
    meta: {
      title: '员工详情',
    },
    //给路由组件的导航栏添加标题
  }]
}
